package com.yfqy.admin.domain.dto.revenue;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class AddRevenueRecord {

    /**
     * 交易日期
     */
    @NotNull(message = "交易日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date recordTime;

    /**
     * 治疗师
     */
    private String therapist = "欣欣";

    /**
     * 顾客姓名
     */
    @NotBlank(message = "顾客姓名不能为空")
    private String customerName;

    /**
     * 体验，单次，年卡
     */
    private String project = "体验";

    /**
     * 项目详情
     */
    private String projectDetail;

    /**
     * 微信、支付宝、工行、post机、抖音、美团、现金
     */
    @NotBlank(message = "支付方式不能为空")
    private String paymentType;

    /**
     * 每笔收入明细
     */
    @NotNull(message = "支付金额不能为空")
    private BigDecimal paymentAmount;

    /**
     * 顾客电话
     */
    private String phone;

    /**
     * 顾客微信
     */
    private String wechat;

    private String remarks;

}
